<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery.min.js"></script>
    <style>
        div {
            width: 200px;
            height: 200px;
            background-color: pink;
        }
    </style>
</head>
<body>
<script>
    //$(`div`).hide();
    //1.等页面要把DOM操作结束之后才能执行js代码
    /*$(document).ready(function () {
        $(`div`).hide();
    })*/
    $(function () {
        $(`div`).hide();
    });
</script>
 <div></div>
</body>
</html>